<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title th:text="${'登陆'+@configTag.getKey('sysCommon','sys.common.title')}"></title>
	<meta name="description" th:content="${@configTag.getKey('sysCommon','sys.common.description')}">
    <link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
    <link href="../static/css/style.min.css" th:href="@{/css/style.min.css}" rel="stylesheet"/>
    <link href="../static/css/login.min.css" th:href="@{/css/login.min.css?v=4.7.3}" rel="stylesheet"/>
    <link href="../static/ruoyi/css/ry-ui.css" th:href="@{/ruoyi/css/ry-ui.css?v=4.7.3}" rel="stylesheet"/>
    <!-- 360浏览器急速模式 -->
    <meta name="renderer" content="webkit">
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="shortcut icon" href="../static/favicon.ico" th:href="${#strings.isEmpty(@configTag.getKey('sysCommon','sys.common.ico'))?'../favicon.ico':@configTag.getKey('sysCommon','sys.common.ico')}">
    <style type="text/css">label.error { position:inherit;  }
    .modal-content img{
        max-width: 100%;
    }
    </style>
    <script>
        if(window.top!==window.self){alert('未登录或登录超时。请重新登录');window.top.location=window.location};
    </script>
</head>
<body class="signin" th:style="'background-image:url('+${#strings.isEmpty(@configTag.getKey('sysLogin','sys.login.back'))?'/img/login-background.jpg':@configTag.getKey('sysLogin','sys.login.back')}+')'">
    <div class="signinpanel">
        <div class="row">
            <div class="col-sm-7">
                <div class="signin-info">
                    <div class="logopanel m-b">
                        <img alt="logo"  th:src="${#strings.isEmpty(@configTag.getKey('sysCommon','sys.common.logo'))? '/ruoyi.png' :@configTag.getKey('sysCommon','sys.common.logo')}" th:onerror="this.src='/ruoyi.png'">
                    </div>
                    <h4>欢迎使用 <strong th:text="${#strings.isEmpty(@configTag.getKey('sysCommon','sys.common.title'))?'止戈管理系统':@configTag.getKey('sysCommon','sys.common.title')}">止戈管理系统</strong></h4>
                    <div th:utext="${@configTag.getKey('sysLogin','sys.login.info')}">
                       
                    </div>      
                    <strong th:if="${@configTag.getKey('sysUser','sys.account.registerUser')}">还没有账号？ <a th:href="@{/register}">立即注册&raquo;</a></strong>
                </div>
            </div>
            <div class="col-sm-5">
                <form id="signupForm" autocomplete="off">
                    <h4 class="no-margins">登录：</h4>
                    <p class="m-t-md" th:text="${#strings.isEmpty(@configTag.getKey('sysCommon','sys.common.title'))?'止戈管理系统':@configTag.getKey('sysCommon','sys.common.title')}">止戈</p>
                    <input type="text"     name="username" class="form-control uname"     placeholder="用户名"  />
                    <input type="password" name="password" class="form-control pword"     placeholder="密码"   />
					<div class="row m-t" th:if="${captchaEnabled==true}">
						<div class="col-xs-6">
						    <input type="text" name="validateCode" class="form-control code" placeholder="验证码" maxlength="5" />
						</div>
						<div class="col-xs-6">
							<a href="javascript:void(0);" title="点击更换验证码">
								<img th:src="@{/captcha/captchaImage(type=${captchaType})}" class="imgcode" width="85%"/>
							</a>
						</div>
					</div>
                    <div class="checkbox-custom" th:classappend="${captchaEnabled==false} ? 'm-t'">
				        <input type="checkbox" id="rememberme" name="rememberme"> <label for="rememberme">记住我</label>
				    </div>
                    <button class="btn btn-success btn-block" id="btnSubmit" data-loading="正在验证登录，请稍后...">登录</button>
                </form>
            </div>
        </div>
        <div class="signup-footer">
            <div class="row m-t" >
                <div class="col-xs-6">
                    <div class="pull-left" th:utext="${@configTag.getKey('sysCommon','sys.common.footer')}">
                        
                      
                    </div> 
                </div>
                <div class="col-xs-6">
                    <div class="table-responsive m-t">      
                        <ul class="m-b" style="list-style:none">
                            <li><h4>最新公告</h4></li>
                            <li th:if="${@configTag.getKey('sysLogin','sys.login.msg')}" th:each="notice:${@noticeTag.listNotice(1,5)}" >
                                <a th:text="${notice.noticeTitle}" data-toggle="modal"  th:data-target="${'#myModal_'+notice.noticeId}"  class="btn-link"></a>
                                    <div class="modal inmodal" th:id="${'myModal_'+notice.noticeId}" tabindex="-1" role="dialog" aria-hidden="true" style="color:black;">
                                        <div class="modal-dialog modal-lg">
                                            <div class="modal-content animated bounceInRight">
                                                <div class="modal-header">
                                                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                                                    </button>
                                                    <h4 class="modal-title" th:text="${notice.noticeTitle}">窗口标题</h4>     
                                                </div>
                                                <div class="modal-body" >
                                                    <div th:utext="${notice.noticeContent}" style="max-height: 65vh;overflow-x: scroll;"></div>
                                                    <br>
                           
                                                   发布时间：<small class="text-muted" th:text="${#dates.format(notice.createTime,'yyyy-MM-dd HH:mm')}">8月18日 16:05 来自 微博 weibo.com</small>
                                                   <br>
                                                   发布人: <small class="text-muted" th:text="${@userTag.getUserByUserLoginName(notice.createBy).userName}">8月18日 16:05 来自 微博 weibo.com</small>
                                                </div>
                                                <div class="modal-footer">
                                                    <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                            </li>
                           
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script th:inline="javascript"> var ctx = [[@{/}]]; var captchaType = [[${captchaType}]],toUrl= [[${toUrl}]]; 
    if("admin"==toUrl)
    {
        toUrl=ctx+toUrl;
    }
    </script>
    <!--[if lte IE 8]><script>window.location.href=ctx+'html/ie.html';</script><![endif]-->
    <!-- 全局js -->
    <script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
    <script src="../static/ajax/libs/validate/jquery.validate.min.js" th:src="@{/ajax/libs/validate/jquery.validate.min.js}"></script>
    <script src="../static/ajax/libs/layer/layer.min.js" th:src="@{/ajax/libs/layer/layer.min.js}"></script>
    <script src="../static/ajax/libs/blockUI/jquery.blockUI.js" th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script>
    <script src="../static/ruoyi/js/ry-ui.js" th:src="@{/ruoyi/js/ry-ui.js?v=4.7.3}"></script>
    <script src="../static/ruoyi/login.js" th:src="@{/ruoyi/login.js}"></script>
    <script th:src="@{/js/bootstrap.min.js?v=3.3.7}"></script>
    </body>
    </html>
    
